//===============================================================================
// Microsoft Architecture Strategy Team
// LitwareHR - SaaS Sample Application
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================


using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace ConfigurationWizard.Configuration
{
    public class TaskElement : ConfigurationElement
    {
        [ConfigurationProperty("description", IsRequired = true, IsKey = true)]
        public string Description
        {
            get { return (string)base["description"]; }
            set { base["description"] = value; }
        }

        [ConfigurationProperty("scriptName", IsRequired = true, IsKey = true)]
        public string ScriptName
        {
            get { return (string)base["scriptName"]; }
            set { base["scriptName"] = value; }
        }

        [ConfigurationProperty("displayConsole", IsRequired = false, IsKey = true, DefaultValue=false)]
        public Boolean DisplayConsole
        {
            get { return Convert.ToBoolean( base["displayConsole"] ); }
            set { base["displayConsole"] = value; }
        }

        [ConfigurationProperty("verb", IsRequired = false, IsKey = true)]
        public String Verb
        {
            get { return Convert.ToString(base["verb"]); }
            set { base["verb"] = value; }
        }

        [ConfigurationProperty("osbuilds", IsRequired = false)]
        [ConfigurationCollection(typeof(OSBuildElementCollection), AddItemName = "osbuild")]
        public OSBuildElementCollection OSBuilds
        {
            get { return (OSBuildElementCollection)base["osbuilds"]; }
            set { base["osbuilds"] = value; }
        }
      
    }
}
